<div class="sidebar">

	<?php foreach ($posts as $post): ?>
	<div class="fondDivPrincipales">
<!--
<a href="<?php echo url_for('posts/show?id='.$post->getId()) ?>"><?php echo $post->getId() ?></a>
-->
<h3><?php echo $post->getTitle() ?> - <small><i><?php echo $post->getDate() ?></i></small></h3>

<a href="<?php echo url_for('posts/show?id='.$post->getId()) ?>"><img src="http://lorempixel.com/200/150/sports class="imageIndexPost"/></a>


<?php echo $post->getContent() ?>
...(<a href="<?php echo url_for('posts/show?id='.$post->getId()) ?>">lire plus</a>)
<!-- <?php echo $post->getPathImage() ?> -->


<div class="clear"></div>
</div>

<div class="espace20"></div>

<?php endforeach; ?>

<a href="<?php echo url_for('posts/new') ?>">Créer un nouveau post bdelag</a>

</div>

